﻿using System.ComponentModel.DataAnnotations;

namespace tju.cme.BookStore2024.webapi.Models.ViewModels.Author
{
    public class AuthorRegisterModel
    {

        /// <summary>
        /// 用户名
        /// </summary>
        [Required]
        public required string UserName { get; set; }

        /// <summary>
        /// 密码
        /// </summary>
        [Required]
        public required string Password { get; set; }

        /// <summary>
        /// 昵称
        /// </summary>
        [Required]
        public required string NickName { get; set; }

        /// <summary>
        /// 作者简介
        /// </summary>
        [Required]
        public required string AuthorProfile { get; set; }

        //public string? Email { get; set; }
        
        ///// <summary>
        ///// 作者电话
        ///// </summary>
        //[Required]
        //public required int TelephoneNumber { get; set; }
    }
}
